﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" Async="true"
    AutoEventWireup="true" CodeFile="password-recovery.aspx.cs" Inherits="user_password_recovery" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
    <div class="main-bg">
        <div class="radius-box">
            <div class="general-col-left">
                <div class="main-title-heading">
                    <%=GetGlobalResourceObject("General", "PasswordRecovery")%></div>
                <div style="width: 450px;">
                    <asp:Label ID="lblPasswordLine" runat="server" Text="<%$ Resources:General,PasswordRecoveryLine%>" />
                </div>
                <div style="width: 450px;">
                    <asp:Label ID="lblMessage" runat="server"></asp:Label>
                    <asp:ValidationSummary ID="vsCustomer" runat="server" ValidationGroup="customer"
                        ShowSummary="True" HeaderText="<%$ Resources:General,RequiredValidation%>" CssClass="error-msg" />
                </div>
                <br />
                <div class="form-column" style="width:130px;">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "EnterEmailId")%></div>
                <div class="form-row" style="width:340px;">
                    <asp:TextBox runat="server" ID="txtEmail" CssClass="input-fields"></asp:TextBox>
                    <cc1:TextBoxWatermarkExtender ID="tbwEmail" runat="server" TargetControlID="txtEmail"
                        WatermarkCssClass="input-fields" WatermarkText="<%$ Resources:General,EnterEmail%>">
                    </cc1:TextBoxWatermarkExtender>
                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail" CssClass="validationError"
                        Display="Dynamic" ErrorMessage="" ValidationGroup="customer"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail" CssClass="validationError"
                        ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="customer"></asp:RegularExpressionValidator></div>
                <div class="form-column" style="width:130px;">
                    <%=GetGlobalResourceObject("General", "SecurityCheck")%></div>
                <div class="form-row" style="width:340px;">
                    <asp:UpdatePanel runat="server" ID="uplCAPCHA">
                        <ContentTemplate>
                            <div style="display: block; float: left;">
                                <asp:Image ID="imgCAPTCHA" runat="server" AlternateText="captcha" />
                            </div>
                            <asp:ImageButton ID="btnNewImage" runat="server" OnClick="btnNewImage_Click" ImageUrl="/images/refresh.png"
                                ToolTip="Reload" AlternateText="Refresh" Width="50px" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <asp:UpdateProgress AssociatedUpdatePanelID="uplCAPCHA" DisplayAfter="100" runat="server"
                        ID="udpCAPTCHA">
                        <ProgressTemplate>
                            <%--<asp:Image ID="imgLoading" ImageUrl="/images/refresh.png" runat="server" AlternateText="loading" />--%>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </div>
                <div class="form-column" style="width:130px;">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "TextinBox")%></div>
                <div class="form-row" style="width:340px;">
                    <asp:UpdatePanel ID="uplSecurityCode" runat="server">
                        <ContentTemplate>
                            <span class="indicator">
                                <asp:TextBox ID="txtSecurityCode" CssClass="input-fields" MaxLength="20" runat="server"></asp:TextBox>
                            </span><span class="indicator">
                                <asp:RequiredFieldValidator ID="rfvSecurityCheck" runat="server" ControlToValidate="txtSecurityCode"
                                    Display="Dynamic" ErrorMessage=""  CssClass="validationError" Text="" ValidationGroup="customer"></asp:RequiredFieldValidator>
                            </span>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <div class="form-row-full" style="width:450px;">
                    <asp:Button ID="btnSubmit" ValidationGroup="customer" Text="<%$ Resources:General,RecoverPasswordCap%>"
                        runat="server" CssClass="action-button" OnClick="btnSubmit_Click" ToolTip="<%$ Resources:General,RecoverPasswordCap%>"
                        OnClientClick="LoadValidationErrorCss();if (Page_ClientValidate('customer')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'action-button-processing';}"  />
                </div>
            </div>
            <div class="general-col-right top20">
                <img src="/images/img-chac-about.jpg" width="407" height="244" alt="" /></div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
</asp:Content>
